<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); hookscriptoutput('viewthread');
0
|| checktplrefresh('./template/guoma/forum/viewthread.htm', './template/guoma/forum/viewthread_node.htm', 1389541788, 'diy', './data/template/2_diy_forum_viewthread.tpl.php', './template/guoma', 'forum/viewthread')
;?><?php include template('common/header'); ?><div class="z_current">
    <div class="z_dqwz">
        <a href="./" title="首页">首页</a><a>&gt;</a><a href="forum.php"><?php echo $_G['setting']['navs']['2']['navname'];?></a><a>&gt;</a><a><?php echo $_G['forum']['name'];?></a>
    </div>
</div>
<script>
    $(function(){
        $('div.pic').hover(function(){
            $(this).find('div.edit').show();
        },function(){
            $(this).find('div.edit').hide();
        })
    })
</script>
<div class="kj_con">
    <div class="kj_right" style="height:auto; width:998px; padding-bottom:20px;">
        <div class="kj_ss">
            <div class="tz_title"><?php echo $_G['forum_thread']['subject'];?></div>
            <div class="tab1" style="margin-right:35px;">
                <a href="#">上一页</a><a href="#">下一页</a>
            </div>
        </div>
        <table border="0" cellpadding="0" cellspacing="0" class="tz_table">
        <?php $postcount = 0;?>        <?php if(is_array($postlist)) foreach($postlist as $post) { ?>        <?php if($rushreply && $_GET['checkrush'] && $post['rewardfloor'] != 1) { ?>
        <?php continue;?>        <?php } ?>
        <?php $needhiddenreply = ($hiddenreplies && $_G['uid'] != $post['authorid'] && $_G['uid'] != $_G['forum_thread']['authorid'] && !$post['first'] && !$_G['forum']['ismoderator']);
$postshowavatars = !($_G['setting']['bannedmessages'] & 2 && ($post['memberstatus'] == '-1' || ($post['authorid'] && !$post['username']) || ($post['groupid'] == 4 || $post['groupid'] == 5) || ($post['status'] & 1)));?><?php if(empty($post['deleted'])) { ?>
<tr>
    <th colspan="2" style="text-align:left;">&nbsp;&nbsp;&nbsp;<?php echo $post['author'];?> （楼主 来自： </th>
    <th width="137" style="text-align:left;"><span>北京市朝阳区）</span></th>
    <th width="325">[ <span class="wd_blue"><?php echo $_G['forum_thread']['allreplies'];?></span> 回复 / <span class="wd_blue"><?php echo $_G['forum_thread']['views'];?></span> 阅读 ] </th>
    <th width="172"> <?php echo $post['dateline'];?></th>
    <th width="199"><a class="tz_nav">快速回帖</a></th>
</tr>
<tr>
    <td height="45" colspan="2"><div class="pic"><?php echo $post['avatar'];?>
        <div class="edit">昵称：<?php echo $post['author'];?><br />
            地区：<?php echo $post['resideprovince'];?> <?php echo $post['residecity'];?><br />
            发帖：<a><?php echo $post['threads'];?></a><br />
            回帖：<a><?php echo $post['posts']-$post['threads'];?></a></div>
    </div>

        <a class="jhy_btn">加好友</a>
        <a class="jhy_btn">发消息</a>
    </td>
    <td colspan="4" rowspan="2"><textarea name="" class="tz_text bg_text" readonly="readonly"><?php echo $post['message'];?></textarea></td>
</tr>
<tr>
    <td colspan="2"></td>
</tr>
<?php if(!empty($aimgs[$post['pid']])) { ?>
<script type="text/javascript" reload="1">
aimgcount[<?php echo $post['pid'];?>] = [<?php echo dimplode($aimgs[$post['pid']]);; ?>];
attachimggroup(<?php echo $post['pid'];?>);
<?php if(empty($_G['setting']['lazyload'])) { if(!$post['imagelistthumb']) { ?>
attachimgshow(<?php echo $post['pid'];?>);
<?php } else { ?>
attachimgshow(<?php echo $post['pid'];?>, 1);
<?php } } ?>
var aimgfid = 0;
<?php if($_G['forum']['picstyle'] && ($_G['forum']['ismoderator'] || $_G['uid'] == $_G['thread']['authorid'])) { ?>
aimgfid = <?php echo $_G['fid'];?>;
<?php } if($post['imagelistthumb']) { ?>
attachimglstshow(<?php echo $post['pid'];?>, <?php echo intval($_G['setting']['lazyload']); ?>, aimgfid, '<?php echo $_G['setting']['showexif'];?>');
<?php } ?>
</script>
<?php } } else { ?>
<table id="pid<?php echo $post['pid'];?>" summary="pid<?php echo $post['pid'];?>" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<?php if(!$close_leftinfo) { ?>
<td class="pls"></td>
<?php } ?>
<td class="plc"<?php if($close_leftinfo) { ?> style="width:100%"<?php } ?>>
<div class="pi">
<strong><a><?php if(!empty($postno[$post['number']])) { ?><?php echo $postno[$post['number']];?><?php } else { ?><em><?php echo $post['number'];?></em><?php echo $postno['0'];?><?php } ?></a></strong>
</div>
<div class="pct">无效楼层，该帖已经被删除</div>
</td>
</tr>
<tr class="ad">
<?php if(!$close_leftinfo) { ?>
<td class="pls"></td>
<?php } ?>
<td class="plc"></td>
</tr>
</tbody>
</table>
<?php } ?>
<?php if(!empty($_G['setting']['pluginhooks']['viewthread_endline'][$postcount])) echo $_G['setting']['pluginhooks']['viewthread_endline'][$postcount];?>
        <?php $postcount++;?>        <?php } ?>
        </table>
        <div class="tab1" style="margin-top:20px;">
            <?php echo $multipage;?>
        </div>
        <form id="fastpostform" autocomplete="off" method="post" action="forum.php?mod=post&amp;action=reply&amp;fid=<?php echo $_G['fid'];?>&amp;tid=<?php echo $_G['tid'];?>&amp;extra=<?php echo $_GET['extra'];?>&amp;replysubmit=yes<?php if($_GET['ordertype'] != 1) { ?>&amp;infloat=yes&amp;handlekey=fastpost<?php } if($_GET['from']) { ?>&amp;from=<?php echo $_GET['from'];?><?php } ?>">
        <table width="1226" border="0" cellpadding="0" cellspacing="0" class="tz_table">
            <tr>
                <th colspan="5"><a class="tz_nav" style="float:left; margin-left:20px; margin-top:2px;">回复帖子</a></th>

            </tr>
            <tr>
                <td height="251" colspan="4"><textarea name="message" class="tz_text" style="width:536px; height:196px;"></textarea></td>
                <td width="386"><img src="images/bq.jpg" width="386" height="221" /></td>
            </tr>
            <tr>
                <td width="299">&nbsp;</td>
                <td width="66">&nbsp;</td>
                <td width="80"><input name="fastpostsubmit" type="submit" value="发表" class="tz_ft_nav"/></td>
                <td width="124">
                    <input type="hidden" name="posttime" id="posttime" value="<?php echo TIMESTAMP;?>" />
                    <input type="hidden" name="formhash" value="<?php echo FORMHASH;?>" />
                    <input type="hidden" name="usesig" value="<?php echo $usesigcheck;?>" />
                    <input type="hidden" name="subject" value="  " />
                    <input type="checkbox" name="checkbox" id="checkbox" />
                    <label for="checkbox">只给注册用户查看</label></td>
                <td>&nbsp;</td>
            </tr>
        </table>
        </form>
    </div>

</div><?php include template('common/footer'); ?>